package springinaction.springidol;


public class Instrumentalist implements Performer {

	private Instrument instrument;
	private String song;
	

	@Override
	public void perform() throws PerformanceException {
		System.out.println("Playing " + song + " : ");
		instrument.play();
	}

	public void setInstrument(Instrument instrument) { // Внедрение инструмента
		this.instrument = instrument;
	}

	public String getSong() {
		return song;
	}

	public void setSong(String song) { // Внедрение мелодии
		this.song = song;
	}

}
